/**
 * 
 */
package org.gas.barapraja.util;

import org.gas.barapraja.db.dao.AccountDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author gilang
 * @param <E>
 *
 */
public class GasApplicationContext{
	
	private static ApplicationContext applicationContext;
	
	
	private GasApplicationContext(){}
	
	static{
		applicationContext=new ClassPathXmlApplicationContext("classpath:db-context.xml");
	}
	
	public static AccountDao getAccountDao(){
		return applicationContext.getBean(AccountDao.class);
	}
	/* (non-Javadoc)
	 * @see org.gas.barapraja.util.DataAccessCtx#getDao(java.lang.Class)
	 */
	

}
